#include "stdafx.h"
#include "render.h"

void render32_clear(render32 * render, argb32 color)
{
	buffer_clear_argb32(render->buffer, color);
}
void render32_clear_rgb24(render32 * render, rgb24 color)
{
	buffer_clear_rgb24(render->buffer, color);
}
void render32_clear_rgb16(render32 * render, rgb16 color)
{
	buffer_clear_rgb16(render->buffer, color);
}
void render32_move_to(render32 * render, int_16 x, int_16 y)
{
	rasterizer16_option(render->rasterizer, x, y, option_command_move_to);
}
void render32_line_to(render32 * render, int_16 x, int_16 y)
{
	rasterizer16_option(render->rasterizer, x, y, option_command_line_to);
}

void render32_set_pixel(render32 * render, int_16 x, int_16 y, argb32 color)
{
	argb32 * pl = buffer_get_line_argb32(render->buffer, y);
	pl[x] = color;
}

void render24_set_pixel(render32 * render, int_16 x, int_16 y, rgb24 color)
{
	(buffer_get_line_rgb24(render->buffer, y))[x] = color;
}
void render24_set_pixel_rgb16(render32 * render, int_16 x, int_16 y, rgb16 color)
{
	buffer_get_line_rgb16(render->buffer, y)[x] = color;
}


void render32_rend(render32 * render)
{

}